package org.f0rb.core.web;

/**
 * Class org.f0rb.demo.common description goes here.
 *
 * @author Administrator
 * @version 1.0.0 11-11-5
 */
public enum WebServiceResult {
    /** 跳转到根目录. */
    REDIRECT_TO_ROOT("redirect:/"),
    /** 跳转到登录页面. */
    REDIRECT_TO_LOGIN("redirect:/user/login"),
    /** 返回403页面. */
    CODE_403("403"),
    /** 返回404页面. */
    CODE_404("404"),
    /** 返回500页面. */
    CODE_500("500"),
    /** 返回一个JSON格式的字符串. */
    JSON,
    INDEX;

    public final String alias;

    WebServiceResult() {
        alias = name().toLowerCase();
    }

    WebServiceResult(String s) {
        alias = s;
    }
}
